package com.zjkj.mp.dao;

/**
 * 
 * spring与ibatis的数据层操作工具
 * 
 * @author <a href="mailto:409384898@qq.com">100160</a>
 * @history
 * <TABLE id="HistoryTable" border="1">
 * 	<TR><TD>时间</TD><TD>描述</TD><TD>作者</TD></TR>
 *	<TR><TD>2012-11-8</TD><TD>创建初始版本</TD><TD>100160</TD></TR>
 * </TABLE>
 */
import javax.annotation.Resource;

import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.orm.ibatis.SqlMapClientTemplate;
import org.springframework.stereotype.Repository;

import com.ibatis.sqlmap.client.SqlMapClient;

@Repository
public class DaoBase {

	@Resource(name="jdbcTemplate")
	protected JdbcTemplate jdbcTemplate;
	
	@Resource(name="sqlMapClientTemplate")
	private SqlMapClientTemplate sqlMapClient;

	public JdbcTemplate getJdbcTemplate() {
		return jdbcTemplate;
	}
	
	public void setJdbcTemplate(JdbcTemplate jdbcTemplate) {
		this.jdbcTemplate = jdbcTemplate;
	}
	
	public SqlMapClientTemplate getSqlMapClient() {
		 
		return sqlMapClient;
	}

	public void setSqlMapClient(SqlMapClientTemplate sqlMapClient) {
		this.sqlMapClient = sqlMapClient;
	}
}

